//
//  TPListTableViewCell.swift
//  Auscultation
//
//  Created by zwb on 2021/3/31.
//

import UIKit

class TPListTableViewCell: UITableViewCell {
    
    @IBOutlet weak var titleL: UILabel!
    var model : TPListModel?{
        didSet{
            self.titleL.text = model?.title
            if model?.ispublic == "0" {
                self.contentView.backgroundColor = UIColor(hexString: "#f8f5f1")
            }else{
                self.contentView.backgroundColor = .white
            }
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.titleL.textColor = UIColor.init(80, 80, 80)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
